let event_dir = {
    1: '开机',
    2: '停机',
}
let event_color = {
    1: '#EDEEE9',
    2: '#E33E31',
}
export const ssr_column = [
    {
        label: '时间',
        name: 'time',
    },
    {
        label: '设备名称',
        name: 'device_name',
    },
    {
        label: '事件',
        name: 'event',
        format: (val) => event_dir[val],
        color: (val) => event_color[val],
    },
]

export const point_column = [
    {
        label: '时间',
        name: 'create_time',
    },
    {
        label: '设备名',
        name: 'device_name',
    },
    {
        label: '时间',
        name: 'create_time',
    },
    {
        label: '详情',
        name: 'details',
    },
]

export const hel_column = [
    {
        label: '时间',
        name: 'time',
    },
    // {
    //     label: '设备名',
    //     name: 'device_name',
    // },
    {
        label: '健康度',
        name: 'health_grade',
    },
]
